I made a module with SPPB and in the SPPB "Text Block" I would like to use {article}[field_name]{/article}.
This shows the "field_name" content of the actual article, theoretically.
I put this module to all article in "somecategory" category (nothing else in content, but customfields are different).
I make a menu item with type "Article -> Blog" and select "somecategory".
If I go to this menu on the frontend only "field_name" content of the lowest ID of article shows on all.
How can I solve that the correct cust.field shows on each article.
The main goal is nobody can access the SPPB component but writers can edit the customfields of article.
Any another solution?
We have Articles Anyw. Pro and Conditional Content pro.
So you are doing this through a module loaded by the core {loadmoduleid} plugin.
Because that is a content plugin, Articles Anywhere will be triggered before it in the article generation stage.
The moment Articles Anywhere gets to see content again (the moment it will see the {article} tags), it is no longer in the article generation stage. And therefore cannot tell what article it belongs to.
I advise you to use Modules Anywhere instead, which is a system plugin, and you can order before Articles Anywhere.
regularlabs.com/modulesanywhere
Rearrange of System Plugins is a good idea, but maybe somehow Articles Anywhere make some mistakes because the standard {field No} works in the same environment.